﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Register" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>Enviroment Survey - Register</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <link href="styles.css" rel="stylesheet" type="text/css" media="screen" />

    <link rel="icon" href="favicon.ico" type="image/x-icon" />
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
    <style type="text/css">
        
        .auto-style2 {
            color: #FF0000;
        }

        .auto-style4 {
            text-align: right;
            width: 300px;
        }
        .auto-style5 {
            width: 160px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div id="content">
            <div id="back_all">

                <div id="header">
                    <div id="logo">
                        <%--<h3 style="color: white"><marquee onmouseover="this.stop()" onmouseout="this.start()" scrollamount="5" behavior="alternate"> <h1>Online Enviroment Survey</h1></marquee>
                        </h3>--%>
                    </div>
                    <div id="menu">
                        <ul>
                            <li><a href="Home.aspx" title="">Home</a></li>
                            <li><a href="SurveyInfo.aspx" title="">Survey</a></li>
                            <li><a href="Contest.aspx" title="">Contest</a></li>
                            <li><a href="FAQs.aspx" title="">FAQs</a></li>
                            <li><a href="About.aspx" title="">About</a></li>
                            <li><a href="Contact.aspx" title="">Contact</a></li>
                        </ul>
                    </div>

                </div>

                <div id="main">

                    <p style="text-align: center; font-size: 30px">
                        Register Account
                    </p>
                    <br />
                    <%--<asp:Panel ID="Panel1" runat="server">--%>
                    <table style="line-height:25px;margin:0 auto;width:100%">
                        <tr>
                            <td class="auto-style4">Username: </td>
                            <td class="auto-style5">
                                <asp:TextBox ID="txtUsername" runat="server" Width="150px"></asp:TextBox>
                            </td>
                            <td><strong>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" CssClass="auto-style2" ErrorMessage="(*)" ControlToValidate="txtUsername"></asp:RequiredFieldValidator>
                                </strong></td>
                        </tr>
                        <tr>
                            <td class="auto-style4">Password: </td>
                            <td class="auto-style5">
                                <asp:TextBox ID="txtPassword" runat="server" Width="150px" TextMode="Password"></asp:TextBox>
                            </td>
                            <td><strong>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" CssClass="auto-style2" ErrorMessage="(*)" ControlToValidate="txtPassword"></asp:RequiredFieldValidator>
                                </strong></td>
                        </tr>
                        <tr>
                            <td class="auto-style4">Confirm Password: </td>
                            <td class="auto-style5">
                                <asp:TextBox ID="txtConfirmPassword" runat="server" Width="150px" TextMode="Password"></asp:TextBox>
                            </td>
                            <td><strong>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" CssClass="auto-style2" ErrorMessage="(*)" ControlToValidate="txtConfirmPassword"></asp:RequiredFieldValidator>
&nbsp;</strong><asp:CompareValidator ID="CompareValidator2" runat="server" CssClass="auto-style2" ErrorMessage="Password is not match" ControlToCompare="txtPassword" ControlToValidate="txtConfirmPassword"></asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="auto-style4">Fullname:</td>
                            <td class="auto-style5">
                                <asp:TextBox ID="txtFullname" runat="server" Width="150px"></asp:TextBox>
                            </td>
                            <td><strong>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" CssClass="auto-style2" ErrorMessage="(*)" ControlToValidate="txtFullname"></asp:RequiredFieldValidator>
                                </strong></td>
                        </tr>
                        <tr>
                            <td class="auto-style4">Student Code:</td>
                            <td class="auto-style5">
                                <asp:TextBox ID="txtStudentCode" runat="server" Width="150px"></asp:TextBox>
                            </td>
                            <td><strong>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" CssClass="auto-style2" ErrorMessage="(*)" ControlToValidate="txtStudentCode"></asp:RequiredFieldValidator>
                                </strong></td>
                        </tr>                       
                        <tr>
                            <td class="auto-style4">Email:</td>
                            <td class="auto-style5">
                                <asp:TextBox ID="txtEmail" runat="server" Width="150px"></asp:TextBox>
                            </td>
                            <td><strong>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" CssClass="auto-style2" ErrorMessage="(*)" ControlToValidate="txtEmail"></asp:RequiredFieldValidator>
                                &nbsp;</strong><asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" CssClass="auto-style2" ErrorMessage="Please Enter Email Format" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txtEmail"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr style="line-height:10px">
                            <td colspan="3"> <br /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td colspan="2">                                                                
                                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Home.aspx">Back to home</asp:HyperLink>

                                &nbsp;&nbsp;&nbsp;

                                <asp:Button ID="btnRegister" runat="server" Text="Register" OnClick="btnRegister_Click"/>
                            </td>
                            
                        </tr>
                        <tr>
                            <td></td>
                            <td colspan="2">
                                <strong>
                                <asp:Label ID="lblMsgLogin" runat="server" Text="" CssClass="auto-style2"></asp:Label></strong></td>
                        </tr>
                    </table>
                    <br /><br />

                    
                    <%--</asp:Panel>--%>
                </div>
            </div>
        </div>
        <div id="footer">
            <p>Copyright &copy; 2008.</p>
            <p>FPT_GC0807_Group 3</p>
        </div>
    </form>
</body>
</html>

